import { UIComponent } from "../../../fl/core/UIComponent";
import { SkinStyle } from "./SkinStyle";
//class SkinManager
    
    export  class SkinManager
    {
       

        public static addStyleSkin(arg1: string, arg2: Object): void
        {
            SkinManager._skinObject[arg1] = arg2;
            return;
        }

        public static getStyleSkin(arg1: string): Object
        {
            return SkinManager._skinObject[arg1];
        }

        public static removeStyleSkin(arg1: string): void
        {
            SkinManager._skinObject[arg1] = null;
            delete SkinManager._skinObject[arg1];
            return;
        }

        public static setComponentStyle(arg1: UIComponent, arg2: string): void
        {
            var loc2=null;
            var loc1=SkinManager._skinObject[arg2] as Class;
            if (loc1) 
            {
                (loc2 = new loc1() as SkinStyle).setStyle(arg1);
            }
            return;
        }

        private static /* var */_skinObject: Map<any, any> /* flash.utils.Dictionary */;
    }

            SkinManager._skinObject = new Map<any, any> /* flash.utils.Dictionary */();
        